<div id="wrap">
	<div class="title"><?php echo $self['title']?> <a href="javascript:history.go(-1);">« 返回 </a> </div>
	<form method="post">
	<div class="ud-main">
	<?php if($_GET['q'] == 2){ ?>
		<div>
			<span>所属分类</span>
			<select name="zone">
			<?php foreach($kind_list as $kind_item){ ?>
				<option value="<?php echo $kind_item['id']?>" <?php if($exist['kid']==$kind_item['id']){echo 'selected';}?>><?php echo $kind_item['name']?></option>
			<?php } ?>
			</select>
		</div>
	<?php } ?>
		<div>
			<span><?php echo $name?>名称</span>
			<input type="text" name="name" value="<?php echo $exist['name']?>">
		</div>
	<?php if($_GET['q'] == 2){ ?>
		<div>
			<span>从版面标签</span>
			<textarea name="info"><?php echo $exist['info']?></textarea>
		</div>
		<div>
			<span>从版面描述</span>
			<textarea name="desc"><?php echo $exist['description']?></textarea>
		</div>
		<div>
			<span>从版面公告</span>
			<textarea name="notice" onkeydown="tab(this)"><?php echo $exist['notice']?></textarea>
		</div>
	<?php } ?>
		<div>
			<button type="submit" name="submit">修改</button>
		</div>
	</div>
	</form>
</div>
</body>
<script type="text/javascript">
	function tab(obj){
    if(event.keyCode==9){
        obj.value=obj.value+'    ';
        if(event && event.preventDefault){
            event.preventDefault();
        }else{
            window.event.returnValue=false;
        }
    }
}
</script>
</html>